package com.chwl.framework.grpc.exception;

/**
 * 包名：com.im.backend.exception<br>
 * <p>功能:</p>
 *
 * @version:1.0 <br/>
 */
public class UserdefinedException extends Exception {
    private static final long serialVersionUID = 1L;
    private String message;
    private int code;

    public UserdefinedException() {
    }

    public UserdefinedException(String mess) {
        super(mess);
        this.message = mess;

    }

    public UserdefinedException(int code) {
        this.code = code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public int getCode() {
        return code;
    }
}
